//
//  LSZHotManager.m
//  JK九酷云头条
//
//  Created by 九酷 on 2017/11/10.
//  Copyright © 2017年 LC. All rights reserved.
//

#import "LSZHotManager.h"

@implementation LSZHotManager
-(id)initWithHotManager:(NSDictionary *)dic
{
    self = [super init];
    if (self) {
        self.mutDataArray = [[NSMutableArray alloc]init];
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSString class]]) {
            return self;
        }
        if ([[dic valueForKey:@"data"] isKindOfClass:[NSNumber class]]) {
            return self;
        }
        if (![dic valueForKey:@"data"]) {
            return self;
        }
        NSArray * arrayData = dic[@"data"];
        NSMutableArray * mutArrayData = [[NSMutableArray alloc]init];
        for (NSDictionary * diction in  arrayData) {
            LSZHotMg * mg = [[LSZHotMg alloc]init];
            NSString * time = [NSString stringWithFormat:@"%@",diction[@"uptime"]];
            mg.uptime =  [LSZSpecialPackaging hotTime:time];
            mg.title = [NSString stringWithFormat:@"%@",diction[@"title"]];
            mg.url = [NSString stringWithFormat:@"%@",diction[@"url"]];
            [mutArrayData addObject:mg];
         }
         self.mutDataArray  = mutArrayData;
     }
    return self;
}
@end
//
@implementation LSZHotMg
@end
